const http = require('http')
// 连接数据库
require('./model/connect')
// 静态资源服务
const { serveStatic } = require('./utils/serve-static')
// 路由器
const { router } = require('./utils/router')

const app = http.createServer()

app.on('request', (req, res) => {
  serveStatic(req, res, () => {})
  router(req, res, () => {})
})

app.listen(3000)
